package com.woniuxy.controller;

import com.woniuxy.entity.ClassInfo;
import com.woniuxy.service.ClassInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/classInfo")
public class ClassInfoController {
    @Resource
    private ClassInfoService classInfoService;
    @GetMapping
    public List<ClassInfo> queryAll(){
        List<ClassInfo> classInfos = classInfoService.queryAll();
        return classInfos;
    }
}
